﻿
using System;
using System.Collections;

namespace System {

	static class Empty<T> {

		public static readonly T [] Array = new T [0];
	}

	static class Empty {

		public static bool IsNullOrEmpty<T> (this T [] self)
		{
			return self == null || self.Length == 0;
		}

		public static bool IsEmpty (this ICollection collection)
		{
			return collection.Count == 0;
		}
	}
}
